package com.mic.dao;

import com.mic.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    int addUser(User user);
    int deleteUser(@Param("userId") Integer userId);
    int updateUser(User user);
    List<User> queryAllUser();
    List<Article> queryAllArticle();
    List<Admin> queryAllAdmin();

    User queryUserByUserId(@Param("userId") Integer userId);





}
